import Vue from 'vue'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
import VueLazyload from 'vue-lazyload'
import 'vant/lib/index.css'
import axios from 'axios'
import {Button, Popup, Form, Field, Tab, Tabs, Toast, Dialog, Notify} from 'vant';

Vue.use(Button).use(Popup).use(Form).use(Field).use(Tab).use(Tabs).use(Dialog)

Vue.use(VueLazyload, {
  preLoad: 3,
  error: require('@/dist/error.svg'),
  loading: require('@/dist/loading-balls.svg')
})
Vue.use(VueAwesomeSwiper)
Vue.prototype.Toast = Toast
Vue.prototype.Dialog = Dialog
Vue.prototype.Notify = Notify
Vue.prototype.axios = axios
